package cn.lhjl.day03.Note;

public class Person {

    private String name;
    private int age;
    private boolean sex;
    {
        System.out.println(name);
    }



    public Person() {

    }

    public Person(String name, int age, boolean sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public void setAge(int num) {
        age = num;
    }

    public int getAge() {
        return age;
    }

    public void show() {
        System.out.println(name + "有" + age + "岁" + sex);
    }

    public void setName(String str) {
        name = str;
    }

    public String getName() {
        return name;
    }

    public void setSex(boolean sex1) {
        sex = sex1;
    }

    public boolean isSex() {
        return sex;
    }

    public void sayHello(String name) {
        System.out.println(name + "你好,我是" + this.name);
    }


    {
        System.out.println(name);
    }

}
